package com.moto.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 历史记录表
 * </p>
 *
 * @author hyf
 * @since 2023-09-01
 */
@Getter
@Setter
@TableName("history_blog")
@ApiModel(value = "HistoryBlog对象", description = "历史记录表")
public class HistoryBlog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("历史记录")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer uId;

    @ApiModelProperty("博客id")
    private Integer bolgId;

    @ApiModelProperty("浏览时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("账号状态 正常:1，删除: 0")
    @TableLogic(value = "1", delval = "0")
    private Integer isDelete;


}
